# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=jeangrey
pkgver=43.9bf3cf4
pkgrel=4
pkgdesc='A tool to perform differential fault analysis attacks (DFA).'
groups=('blackarch' 'blackarch-cracker' 'blackarch-crypto')
arch=('any')
url='https://github.com/SideChannelMarvels/JeanGrey'
license=('GPL3')
depends=('python')
makedepends=('git' 'python-setuptools')
source=("$pkgname::git+https://github.com/SideChannelMarvels/JeanGrey.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd "$pkgname/phoenixAES"

  python setup.py install --root="$pkgdir"

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

